package com.example.mam.dto;

import java.io.Serializable;
import java.util.List;

/**
 * @author muncie [muncie.hoo@qq.com]
 */
public class TableResult<T> implements Serializable {

    private static final long serialVersionUID = -4327694992199034130L;

    private Integer total;
    private List<T> rows;

    public TableResult(Integer total, List<T> rows) {
        this.total = total;
        this.rows = rows;
    }

    public TableResult() {
    }

    @Override
    public String toString() {
        return "TableResult{" +
                "total=" + total +
                ", rows=" + rows +
                '}';
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }
}
